OBJS=$(patsubst  %.c, %.o, $(wildcard ./*.c))
TARGET=main
$(TARGET):$(OBJS)
	gcc $^ -o $@

%.o:%.c 
	gcc -c $^ -o $@ 
clean:
	rm -rf *.o $(TARGET)